﻿using System;
using Freshbooks.XmlSerializers;

namespace Freshbooks.Model
{
    [FreshbooksSerialization(Name = "time_entry")]
    public class TimeEntry
    {
        [FreshbooksSerialization(Name = "time_entry_id")]
        public int TimeEntryId { get; set; }

        [FreshbooksSerialization(Name = "staff_id")]
        public int StaffId { get; set; }

        [FreshbooksSerialization(Name = "project_id")]
        public int ProjectId { get; set; }

        [FreshbooksSerialization(Name = "task_id")]
        public int TaskId { get; set; }

        [FreshbooksSerialization(Name = "hours")]
        public float Hours { get; set; }

        [FreshbooksSerialization(Name = "date")]
        public DateTime Date { get; set; }

        [FreshbooksSerialization(Name = "notes")]
        public string Notes { get; set; }

        [FreshbooksSerialization(Name = "billed")]
        public bool Billed { get; set; }
    }
}
